package com.example.online_order.service;

import com.example.online_order.pojo.Orders;
import com.example.online_order.pojo.PageItem;
import org.apache.ibatis.annotations.*;

import java.util.List;

public interface OrdersService {


    public Orders findById(Integer id);


    public Orders findByOrderNum(String orderNum);


    public List<Orders> findLikeUserNameAndProduct(String userName, String goodsName);


    public List<Orders> findAll();


    public Integer addOrder(Orders orders);


    public Integer deleteById(Integer id);


    public boolean deleteByids( int[] ids);

    public  Integer clientDlite(Integer id);


    PageItem<Orders> queryPage(Integer current, Integer size,String userName);

    PageItem<Orders> queryPageAll(Integer current, Integer size);

    PageItem<Orders> queryConditionPage(Orders order, Integer current, Integer size);
    List<Orders> findByUserName(String userName);

    Integer clientUpdate(Integer orderid);
}
